package com.erp.freight.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 燕文物流产品信息业务对象 ejf_logistics_product_info
 *
 * @author erp
 * @date 2023-06-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EjfLogisticsProductInfoBo extends BaseEntity {

    /**
     * 产品id
     */
    @NotNull(message = "产品id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 产品中文名
     */
    @NotBlank(message = "产品中文名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nameCh;

    /**
     * 产品英文名
     */
    @NotBlank(message = "产品英文名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nameEn;

    /**
     * 乐观锁
     */
    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
